﻿using System;
using System.ComponentModel.DataAnnotations;

namespace DTcms.Model
{
    /// <summary>
    /// 收货地址簿
    /// </summary>
    [Serializable]
    public partial class user_addr_book
    {
        public user_addr_book()
        { }
        #region Model
        private int _id;
        private int _user_id;
        private string _user_name;
        private string _accept_name;
        private string _area;
        private string _address;
        private string _streetnumber;
        private string _mobile = string.Empty;
        private string _telphone = string.Empty;
        private string _email = string.Empty;
        private string _post_code = string.Empty;
        private int _is_default = 0;
        private DateTime _add_time = DateTime.Now;
        private float _shop_x = 0;
        private float _shop_y = 0;
        private int _shop_z = 0;
        private int _ggmap = 2;

        /// <summary>
        /// 自增ID
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int user_id
        {
            set { _user_id = value; }
            get { return _user_id; }
        }
        /// <summary>
        /// 用户名
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string user_name
        {
            set { _user_name = value; }
            get { return _user_name; }
        }
        /// <summary>
        /// 收件人
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string accept_name
        {
            set { _accept_name = value; }
            get { return _accept_name; }
        }
        /// <summary>
        /// 省市区逗号分隔
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string area
        {
            set { _area = value; }
            get { return _area; }
        }
        /// <summary>
        /// 详细地址
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string address
        {
            set { _address = value; }
            get { return _address; }
        }
        /// <summary>
		/// 门牌号
		/// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
		public string streetnumber
        {
            set { _streetnumber = value; }
            get { return _streetnumber; }
        }
        /// <summary>
        /// 手机号码
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string mobile
        {
            set { _mobile = value; }
            get { return _mobile; }
        }
        /// <summary>
        /// 电话号码
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string telphone
        {
            set { _telphone = value; }
            get { return _telphone; }
        }
        /// <summary>
        /// 电子邮箱
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string email
        {
            set { _email = value; }
            get { return _email; }
        }
        /// <summary>
        /// 邮政编码
        /// </summary>
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string post_code
        {
            set { _post_code = value; }
            get { return _post_code; }
        }
        /// <summary>
        /// 是否默认
        /// </summary>
        public int is_default
        {
            set { _is_default = value; }
            get { return _is_default; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime add_time
        {
            set { _add_time = value; }
            get { return _add_time; }
        }
        /// <summary>
        /// 坐标x
        /// </summary>
        public float shop_x
        {
            set { _shop_x = value; }
            get { return _shop_x; }
        }
        /// <summary>
        /// 坐标y
        /// </summary>
        public float shop_y
        {
            set { _shop_y = value; }
            get { return _shop_y; }
        }
        /// <summary>
        /// 坐标z
        /// </summary>
        public int shop_z
        {
            set { _shop_z = value; }
            get { return _shop_z; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int ggmap
        {
            set { _ggmap = value; }
            get { return _ggmap; }
        }
        #endregion Model
    }
}